<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
     <div id="app">
         <input type="email" v-model="email">
         <input type="text" v-model="name">
         <input type="button" value="修改数据" @click="modify">
         <input type="button" value="显示数据" @click="show">
     </div>

</body>

<script src="./lib/vue-2.4.0.js"></script>
<script>
    const vm=new Vue({
        el:"#app",
        data:{
            email:"zhangsan@qq.com",
            name:"zhangsan"

        },
        methods:{
            modify(){
                this.email="rhm981222",
                this.name="ruanhuimei"
            },
            show(){
                console.log(this.email,this.name)
            }

        }
    })
</script>
</html>
